package mx.com.theboard;

import mx.com.theboard.login.LoginWindow;
import mx.com.theboard.login.MenuLogin;
import mx.com.theboard.login.RegisterWindow;
import mx.com.theboard.menu.Menu;

import com.vaadin.Application;
import com.vaadin.ui.*;

public class TheboardApplication extends Application {
	public static RegisterWindow registro;
	
	@Override	
	public void init() {
		setTheme("theBoard");
		Window mainWindow = new Window("Theboard Application");	
		mainWindow.setStyleName("tbmainw");
		setMainWindow(mainWindow);
		
		MenuLogin menu = new MenuLogin();
		mainWindow.addComponent(menu);
		
		
		LoginWindow login = new LoginWindow();
		mainWindow.addWindow(login);
		
		registro = new RegisterWindow();
		mainWindow.addWindow(registro);
		registro.setPositionY(80);
		registro.setPositionX(40);
		
		//mainWindow.addComponent(hl);
		((VerticalLayout) mainWindow.getContent()).setMargin(false);
	}

}
